package com.kh.pajx.sop.dao.order.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.kh.pajx.sop.base.BaseDaoImpl;
import com.kh.pajx.sop.dao.order.IReplaceCardOrderPhotoDao;
import com.kh.pajx.sop.domain.order.ReplaceCardOrderPhoto;

@Repository
public class ReplaceCardOrderPhotoDaoImpl extends BaseDaoImpl<ReplaceCardOrderPhoto> implements IReplaceCardOrderPhotoDao {

	@Override
	public List<ReplaceCardOrderPhoto> getByRcoId(String rocId) throws Exception {
		String hql=" From ReplaceCardOrderPhoto r where r.rcoPhotoStatusFlag=1 and r.rocId=?";
		 return this.getSession().createQuery(hql).setString(0, rocId).list();
	}
}
